var http = require('http'),
  url = require('url'),
  querystring = require('querystring'),
  util = require('util');

http.createServer(function(req, res) {
  var postData = '';
  req.setEncoding('utf8');
  req.on('data', function(chunk) {
    postData += chunk;
  });
  req.on('end', function() {
    var param = querystring.parse(postData);
    console.info('param:' + util.inspect(param));
  });
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.write('success');
  res.end();
}).listen(3000);
console.log('server start at http://127.0.0.1:3000');
